.my-template {
  position: relative;
  height: 100%;

  .my-ad-container {
    position: absolute;
    z-index: 1;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;

    .my-ad-container-left {
      width: 300px;
      background: #FFF;
      box-shadow: 0 12px 12px 0 rgba(0, 0, 0, .1);
    }

    .my-ad-container-center {
      flex: 1;
      margin: 25px 0;
      overflow: auto;

      .ad-phone {
        margin: 0 auto;
        width: 375px;
        min-height: 760px;
        background-color: rgb(249, 249, 249);
        box-shadow: 0 0 14px 0 rgba(0, 0, 0, 0.1);
        position: relative;

        display: flex;
        flex-direction: column;


        .ad-page-header {
          height: 22px;
          background: #FFFFFF;

          img {
            width: 100%;
          }
        }

        .ad-page-title {
          padding: 0 15px;
          background: #FFFFFF;
          line-height: 35px;
          text-align: center;
          display: flex;
          justify-content: space-between;
        }

        .comp-cont {
          position: relative;

          .it-handle {
            position: absolute;
            top: 0;
            left: 0;

            width: 100%;
            height: 100%;
          }
        }

        .ad-page-cont {
          width: 100%;
          margin-bottom: 20px;
          min-height: 603px;
          flex: 1;
          position: relative;


          .ad-component {
            box-sizing: border-box;
            position: relative;
            border: 1px solid transparent;
            cursor: grabbing;

            &.active {
              border: 1px dashed #409eff !important;
            }

            &.error {
              border: 1px dashed red !important;
            }

            &.chosen {
              border: 1px dashed #d2d2d2 !important;
              background-color: #f3f2f2 !important;
            }


            &.ad-comp-absolute-top {
              position: absolute;
              left: 0;
              width: 100%;
              cursor: not-allowed;
              top: 0;
            }

            &.ad-comp-absolute-bottom {
              position: absolute;
              left: 0;
              width: 100%;
              cursor: not-allowed;
              bottom: 0;
            }

            .model-title-jiao {
              position: absolute;
              left: 378px;
              top: 5px;
              width: 0;
              height: 0;
              border-top: 5px solid transparent;
              border-bottom: 5px solid transparent;
              border-right: 8px solid #ffffff;
            }

            .model-title-jiao2 {
              position: absolute;
              right: 378px;
              top: 5px;
              width: 0;
              height: 0;
              border-top: 5px solid transparent;
              border-bottom: 5px solid transparent;
              border-left: 8px solid #ffffff;
            }

            .model-title {
              position: absolute;
              left: 385px;
              top: 0;
              font-size: 12px;
              color: #333;
              display: flex;
              padding: 3px 5px;
              background: #FFF;
              border-radius: 5px;


              .handle-btn {
                display: flex;
                align-items: center;

                .s-btn {
                  padding-right: 3px;

                  &:last-child {
                    padding: 0;
                  }
                }

              }

              .handle-name {
                padding-left: 5px;

                .name {
                  font-size: 12px;
                }

                .desc {
                  font-size: 12px;
                  color: rgba(0, 0, 0, 0.35);
                }
              }


            }

            .model-title-jiao3 {
              position: absolute;
              left: 98px;
              top: 5px;
              width: 0;
              height: 0;
              border-top: 5px solid transparent;
              border-bottom: 5px solid transparent;
              border-right: 8px solid #ffffff;
            }

            .model-title3 {
              position: absolute;
              left: 105px;
              top: 0;
              font-size: 12px;
              color: #333;
              display: flex;
              padding: 3px 5px;
              background: #FFF;
              border-radius: 5px;


              .handle-btn {
                display: flex;
                align-items: center;

                .s-btn {
                  padding-right: 3px;

                  &:last-child {
                    padding: 0;
                  }
                }

              }

              .handle-name {
                padding-left: 5px;

                .name {
                  font-size: 12px;
                }

                .desc {
                  font-size: 12px;
                  color: rgba(0, 0, 0, 0.35);
                }
              }


            }


          }


        }


        .phoneSize {
          position: absolute;
          left: -135px;
          top: 640px;
          font-size: 12px;
          color: #a2a2a2;
          border-bottom: 1px solid #dedede;
          width: 130px;
          height: 21px;
          line-height: 21px;
        }

        .phoneBottom {
          width: 100%;
          background-color: #fff;
          height: 20px;
          cursor: pointer;
          position: absolute;
          bottom: 0;
          left: 0;

          .handle {
            margin: 7px auto 0;
            width: 120px;
            height: 6px;
            border-radius: 3px;
            background-color: rgba(0, 0, 0, .5);
          }
        }

      }

    }

    .my-ad-container-right {
      width: 365px;
      background-color: #fff;
      border-left: #e4e7ed solid 1px;
      box-shadow: 0 12px 12px 0 rgba(0, 0, 0, .1);
      display: flex;
      flex-direction: column;

      .tmp-attribute {

        height: 100%;
        padding: 0 20px 20px;
        overflow: auto;


        .attribute {

          .desc {
            color: #555;
            font-size: 20px;
            position: relative;
            padding-left: 15px;

            &::after {
              content: "";
              position: absolute;
              border-radius: 2px;
              width: 5px;
              height: 80%;
              top: 3px;
              left: 0;
              background-color: #1b84ff;

            }
          }

          .item-desc {
            padding: 5px 0;
            font-size: 12px;
            color: rgba(0, 0, 0, .35);
          }

          .attribute-container {
            display: flex;
            flex-direction: column;
            padding: 5px 0;

            .title {
              display: flex;
              justify-content: space-between;
              padding: 5px 0;
              align-items: center;

              .bl-title-left {
                flex: 1;
              }

              .bl-title-right {
                text-align: right;
                width: 50px;
              }
            }

            .cont {
              padding: 5px 0;
            }

            .tips {
              font-size: 12px;
            }

            &.bl {
              box-sizing: border-box;
              padding: 10px;
              border: 1px solid #d9d9d9;
              border-radius: 6px;
              margin-top: 10px;
            }


            .bl-item {
              width: 100%;
              display: flex;
              flex-direction: column;

              .item {
                width: 100%;

                display: flex;
                flex-wrap: wrap;

                .cont {
                  width: 50%;
                }

              }

            }

          }


        }
      }


    }

  }

}


.ad-comp-text {

  .my-text-card {
    display: flex;
    flex-flow: column;

    border-radius: 10px;
    box-shadow: 0 0 14px 0 rgba(0, 0, 0, 0.1);

    .my-text-card-title {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;

      &:after {
        position: absolute;
        content: '';
        width: 100%;
        height: 1px;
        background-color: rgba(0, 0, 0, 0.1);
        bottom: -1px;
        left: 0;
      }

      .my-title-zu {

      }

      .my-title-fu {
        padding-top: 3px;
      }
    }

    .my-text-card-cont {


    }
  }

}


.ad-comp-notice {
  display: flex;
  align-items: center;

  .my-add-gg-icon {
    padding-right: 5px;
  }
}

.ad-comp-image {

  img {
    width: 100%;
  }

  .empty-ico {
    background: #FFF;
    color: #999;
    min-height: 120px;
    //padding-bottom: 20px;
    font-size: 50px !important;
    display: flex;
    justify-content: center;
    align-items: center;

    .el-icon {
      padding-bottom: 20px !important;
    }
  }
}


.my-comp-service {
  display: flex;
  flex-flow: column;
  align-items: center;
}

.my-comp-service-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;

  .my-comp-service-bottom-icon {
    display: flex;
    align-items: center;
  }

}

.qr-draggable {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;

}
